<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello</title>
<link rel="stylesheet" href="/static/css/index.css">
<script src="/static/js/jquery/jquery-1.9.1.min.js"></script>
<script src="/static/js/angular-1.4.5/angular.js"></script>
<script src="/static/js/cityAngular.js"></script>
</head>
<body ng-app="cityApp" ng-controller="cityController">
	<div style="margin-left:500px;">
		 <h1>添加城市信息</h1>
		 <div><a href="javascript:void(0)" style="font-size:150%;" ng-click="addCity()">添加</a></div>
		 <table border=1 >
		<tr>
			<td>城市名称</td>
			<td>拼音</td>
			<td>最后更新时间</td>
		</tr>
		<tr ng-repeat="city in cityList">
			<td>{{city.name}}</td>
			<td>{{city.pinYin}}</td>
			<td>{{city.editTime}}</td>
		</tr>
	</table>
	</div>
	
	<div id="addcity" class="add_city">
		<p>城市名称：<input type="text" ng-model="city.name"></input></p>
		<p>城市拼音：<input type="text" ng-model="city.pinYin"></input></p>
		<div><input type="button" value="确认" ng-click="addtrue()"></input>&nbsp;&nbsp;<input type="button" value="取消" ng-click="addfalse()"></input></div>
	</div>

	<div style="margin-left:500px;">
		 <h1>定时任务</h1>
		 <div><a href="javascript:void(0)" style="font-size:150%;" ng-click="runCity()">开启定时任务，每小时数据更新一次</a></div>
	</div>

</body>
</html>